﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="editList.aspx.cs" Inherits="orgman_methods_editList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="content" class="boot">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                SelectCommand="SELECT methodid, methodname, creator, createdtime, description FROM method WHERE (organizationid = @organizationid) AND (available = 'false') ORDER BY methodid DESC">
                <SelectParameters>
                    <asp:SessionParameter Name="organizationid" SessionField="organizationid" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataKeyNames="methodid" DataSourceID="SqlDataSource1" 
                ForeColor="#333333" GridLines="None" Width="700px" CssClass="dataTable">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:BoundField DataField="methodname" HeaderText="评估方法" 
                        SortExpression="methodname" />
                    <asp:BoundField DataField="creator" HeaderText="创建者" SortExpression="creator" />
                    <asp:BoundField DataField="createdtime" HeaderText="创建时间" 
                        SortExpression="createdtime" />
                    <asp:BoundField DataField="description" HeaderText="描述" 
                        SortExpression="description" />
                    <asp:HyperLinkField DataNavigateUrlFields="methodid" 
                        DataNavigateUrlFormatString="review.aspx?methodid={0}" 
                        Text="<img src='../../images/detail.gif' />">
                        <ItemStyle CssClass="bacimg1" />
                    </asp:HyperLinkField>
                    <asp:HyperLinkField DataNavigateUrlFields="methodid" 
                        DataNavigateUrlFormatString="modi.aspx?methodid={0}" 
                        Text="&lt;font color='red'&gt;添加等级尺度&gt;&gt;&lt;/font&gt;" />
                </Columns>
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    <asp:Label ID="Label1" runat="server" Text="当前没有可编辑的评估方法。"></asp:Label>
                    <br />
                    <br />
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </div>
    </div>
    <p>
        <asp:Label ID="Label2" runat="server" ForeColor="Red" 
    Text="*注：已提交的评估方法不可编辑。" BackColor="White"></asp:Label>
    </p>
    </form>
</body>
</html>
